package com.example.attendancesystem_1_8.backendInterface;

import android.util.Log;

import com.example.attendancesystem_1_8.MainActivity;

public class LoginThread extends Thread
{
    private String account_input;
    private String password_input;

    public LoginThread(String account_input, String password_input){
        this.account_input = account_input;
        this.password_input = password_input;
    }
    @Override
    public synchronized void start()
    {
        super.start();
    }

    @Override
    public void run() {
        int result;
        Log.i("tag:","测试");
        result = Account.login(account_input,password_input);
        Log.i("tag:","成功");
        MainActivity.callback(result);
    }
}
